// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "UsableActor.h"
#include "Components/TextRenderComponent.h"
#include "PickupActor.generated.h"

/**
 * 
 */
UCLASS()
class RPG_API APickupActor : public AUsableActor
{
	GENERATED_BODY()

public:
	APickupActor(const FObjectInitializer& ObjectInitializer);

	bool OnUsed_Implementation(ACharacter* Character);

	UPROPERTY(EditAnywhere, BlueprintReadOnly, Replicated, Category = Inventory)
	int32 ItemID;

	UPROPERTY(VisibleDefaultsOnly, BlueprintReadOnly, Category = Inventory)
	UTextRenderComponent *TextRender;

	virtual void OnConstruction(const FTransform& Transform) override;
};